﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using System.Windows.Controls.DataVisualization;

namespace Fayshine.VA.Views
{
    public partial class RealTimeCurve : Page
    {
        public RealTimeCurve()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(RealTimeCurve_Loaded);
        }

        void RealTimeCurve_Loaded(object sender, RoutedEventArgs e)
        {
            List<Customer> cust = new List<Customer>();
            cust.Add(new Customer() { Time = "00:00", Number = 2 });
            cust.Add(new Customer() { Time = "01:00", Number = 5 });
            cust.Add(new Customer() { Time = "02:00", Number = 10 });
            cust.Add(new Customer() { Time = "03:00", Number = 2 });
            cust.Add(new Customer() { Time = "05:00", Number = 11 });
            cust.Add(new Customer() { Time = "06:00", Number = 15 });
            cust.Add(new Customer() { Time = "07:00", Number = 20 });
            cust.Add(new Customer() { Time = "08:00", Number = 30 });
            cust.Add(new Customer() { Time = "09:00", Number = 40 });
            cust.Add(new Customer() { Time = "10:00", Number = 55 });
            cust.Add(new Customer() { Time = "11:00", Number = 100 });
            cust.Add(new Customer() { Time = "12:00", Number = 120 });
            cust.Add(new Customer() { Time = "13:00", Number = 140 });
            cust.Add(new Customer() { Time = "14:00", Number = 143 });
            cust.Add(new Customer() { Time = "15:00", Number = 150 });
            cust.Add(new Customer() { Time = "16:00", Number = 160 });
            cust.Add(new Customer() { Time = "17:00", Number = 80 });
            cust.Add(new Customer() { Time = "18:00", Number = 78 });
            cust.Add(new Customer() { Time = "19:00", Number = 66 });
            cust.Add(new Customer() { Time = "20:00", Number = 120 });
            cust.Add(new Customer() { Time = "21:00", Number = 70 });
            cust.Add(new Customer() { Time = "22:00", Number = 60 });
            cust.Add(new Customer() { Time = "23:00", Number = 30 });

            List<Customer> cust2 = new List<Customer>();
            cust2.Add(new Customer() { Time = "00:00", Number = 1 });
            cust2.Add(new Customer() { Time = "01:00", Number = 2 });
            cust2.Add(new Customer() { Time = "02:00", Number = 5 });
            cust2.Add(new Customer() { Time = "03:00", Number = 1 });
            cust2.Add(new Customer() { Time = "05:00", Number = 9 });
            cust2.Add(new Customer() { Time = "06:00", Number = 12 });
            cust2.Add(new Customer() { Time = "07:00", Number = 13 });
            cust2.Add(new Customer() { Time = "08:00", Number = 22 });
            cust2.Add(new Customer() { Time = "09:00", Number = 25 });
            cust2.Add(new Customer() { Time = "10:00", Number = 40 });
            cust2.Add(new Customer() { Time = "11:00", Number = 80 });
            cust2.Add(new Customer() { Time = "12:00", Number = 112 });
            cust2.Add(new Customer() { Time = "13:00", Number = 120 });
            cust2.Add(new Customer() { Time = "14:00", Number = 132 });
            cust2.Add(new Customer() { Time = "15:00", Number = 111 });
            cust2.Add(new Customer() { Time = "16:00", Number = 123 });
            cust2.Add(new Customer() { Time = "17:00", Number = 76 });
            cust2.Add(new Customer() { Time = "18:00", Number = 80 });
            cust2.Add(new Customer() { Time = "19:00", Number = 22 });
            cust2.Add(new Customer() { Time = "20:00", Number = 130 });
            cust2.Add(new Customer() { Time = "21:00", Number = 80 });
            cust2.Add(new Customer() { Time = "22:00", Number = 20 });
            cust2.Add(new Customer() { Time = "23:00", Number = 50 });

            A a= new A();
            a.AA = cust;
            a.BB = cust2;
            
            this.DataContext = a;
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

    }

    public class Customer
    {
        public string Time { get; set; }
        public int Number { get; set; }
    }

    public class A
    {
        public List<Customer> AA
        {
            get;
            set;
        }
        public List<Customer> BB
        {
            get;
            set;
        }

        public List<Customer> CC
        {
            get;
            set;
        }
    }
}
